package com.tjbklx1.redis.chap06;

import java.util.List;
import java.util.Map;

public class ChatMessages {
	public String chatId;
	public List<Map<String, Object>> messages;

	public ChatMessages(String chatId, List<Map<String, Object>> messages) {
		this.chatId = chatId;
		this.messages = messages;
	}

	public boolean equals(Object other) {
		if (!(other instanceof ChatMessages)) {
			return false;
		}
		ChatMessages otherCm = (ChatMessages) other;
		return chatId.equals(otherCm.chatId) && messages.equals(otherCm.messages);
	}
}